﻿@{
    ViewBag.Title = "CompanyInfo";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@{
    string Id = ViewData["Id"].ToString();//公司ID
}
<style>
    .sub_nav li a {
        width: 80px;
    }
</style>
<div class="mod_containter" style="height: 100%" id="idmod_containter">
    <div class="main" id="idmain">
        <div class="mod_load" id="mod_load">
            <div class="mod_hd" id="idmod_hd">
                <h2 class="title">设置</h2>
                <div style="float:right">
                    <a class="white" id="aLoginOut">退出登录</a>
                    &nbsp;&nbsp;
                    <script type="text/javascript">

                        $("#aLoginOut").click(function () {
                            top.window.location.href = "/";

                        }).mouseover(function () {

                            $("#aLoginOut").toggleClass("red");
                        });

                    </script>
                    <style>
                        .red {
                            color: red;
                            font-size: 14px;
                            cursor: pointer;
                        }

                        .white {
                            color: white;
                            font-size: 14px;
                            cursor: pointer;
                        }
                    </style>
                </div>
            </div>
            <div class="mod_bd">
                <div class="sub_nav" id="sub_nav">
                    <ul>
                        <li class="on"><a href="/Setting/CompanyInfo">公司信息管理</a></li>
                        <li><a href="/Setting/AccountUnregistered">未认证用户</a></li>
                        <li><a href="/Setting/Account">用户管理</a></li>
                        <li><a href="/Setting/RolePower">权限管理</a></li>
                        <li><a href="/Setting/MessageSet">消息设置</a></li>
                        <li><a href="/Setting/CabinetListInfo">智能单元</a></li>
                        <li><a href="/Setting/MaterialProductMode">产品领料设置</a></li>
                        <li><a href="/Setting/MaterialMachineMode">机床领料设置</a></li>
                        <li><a href="/Setting/MaterialList">物料信息</a></li>
                        <li><a href="/Setting/SafetyStock">安全库存</a></li>
                    </ul>
                </div>
                <div class="form clearfix nouse">
                    <h3>基本信息</h3>
                    <ul class="clearfix">
                        <li>
                            <label class="label">公司名称:</label>
                            <div class="inptxt">
                                <input type="text" class="disabled" id="COMPANY_FULLNAME" name="COMPANY_FULLNAME" value="@Model.COMPANY_FULLNAME" disabled="disabled" />
                            </div>
                        </li>
                        <li>
                            <label class="label">公司简称:</label>
                            <div class="inptxt">
                                <input type="text" class="disabled" id="COMPANY_NAME" name="COMPANY_NAME" value="@Model.COMPANY_NAME" disabled="disabled" />
                            </div>
                        </li>
                        <li>
                            <label class="label">公司联系人:</label>
                            <div class="inptxt">
                                <input type="text" class="disabled" id="COPANNY_CHARGE" name="COPANNY_CHARGE" value="@Model.COPANNY_CHARGE" disabled="disabled" />
                            </div>
                        </li>
                        <li>
                            <label class="label">联系电话:</label>
                            <div class="inptxt">
                                <input type="text" class="disabled" id="COMPANY_PHONE" name="COMPANY_PHONE" value="@Model.COMPANY_PHONE" disabled="disabled" />
                            </div>
                        </li>
                        <li>
                            <label class="label">所在城市:</label>
                            <div class="inptxt">
                                <input type="text" class="disabled" id="COMPANY_CTIY" name="COMPANY_CTIY" value="@Model.COMPANY_CTIY" disabled="disabled" />
                            </div>
                        </li>
                    </ul>
                </div>
                <div class="fd">
                    <div class="load_btn" style="text-align:center">
                        <br />
                        <button class="btn_blue" id="btnEdit">修改公司信息</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
    </div>
    <script>

        $("#btnEdit").click(function () {
            var index = layer.open({
                anim: -1,
                title: !1,
                closeBtn: 1,
                type: 2,
                shadeClose: false,
                area: ['403px', '372px'],
                move: false,
                content: ['/Setting/CompanyInfoEdit?width=-186px&action=edit&Id=@Id', 'no']
            })
            return false;
        });


    </script>

